/**
 * 带分页 带锁定列
 */
Ext.namespace("Ext.ux.grid");
Ext.ux.grid.SSNJLOCKPAGEGrid = Ext.extend(Ext.grid.GridPanel, {
    el:this.el,
    pageSize : 20,
    columnLines:true,

    viewConfig: {   stripeRows:true,
        enableRowBody:false
    },
    loadMask:false,
    initComponent : function() {
        this.initStructure();
        Ext.ux.grid.SSNJLOCKPAGEGrid.superclass.initComponent.call(this);
    },
    initStructure : function() {
        this.store.on('beforeload', function() {
           // Ext.MessageBox.wait("正在读取数据...", "请稍等...");
        });
        this.store.on('load', function() {
           // Ext.MessageBox.hide();
        });
        if(this.pageSize>0) {
        this.bbar = new Ext.PagingToolbar({
            pageSize : this.pageSize,
            store : this.store,
            displayInfo : true,

            plugins : [
                       //  new Ext.ux.plugins.PageCycleResizer({pageSizes: [5, 10, 15, 20, 30, 50,100]})
             new Ext.ux.plugins.PageComboResizer({pageSizes : [ 5, 10, 15, 20, 30, 50,100 ]})
//                 new Ext.ux.plugins.PageSliderResizer({pageSizes: [5, 10, 15, 20, 30, 50,100]})
            ]
        })    
    }  }
    ,view: new Ext.ux.grid.LockingGridView()
});